package com.tsugun.mediaplayer.view.fragment.subfragment;

import android.content.Context;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.tsugun.mediaplayer.R;
import com.tsugun.mediaplayer.view.activity.BaseActivity;
import com.tsugun.mediaplayer.view.widget.MultiStatusLayout;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.Unbinder;

/**
 * create an instance of this fragment.
 */
public class TopFragment extends SubBaseFragment {

    @BindView(R.id.id_top_multi_status)
    MultiStatusLayout mMSLayout;
//    @BindView(R.id.id_arc_progressbar)
//    ArcProgressBar mAPBar;

    private View mFragment;
    private Context mContext;
    private Unbinder unbinder;

    private int mLoadStatus;

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
    }

    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        mFragment = inflater.inflate(R.layout.fragment_top, container, false);
        mContext = container.getContext();
        unbinder = ButterKnife.bind(this, mFragment);

        initData();
        bindData();
        return mFragment;
    }

    @Override
    public void onStart() {
        super.onStart();
        ((BaseActivity)getActivity()).onSettingChanged();
    }

    private void initData() {
        mLoadStatus = 0;
    }

    private void bindData() {
        mMSLayout.showEmptyView();
//        mAPBar.openTouch();
    }

    @Override
    public void onDestroyView() {
        super.onDestroyView();
        unbinder.unbind();
    }
}
